package design_pattern.FactoryModelUse.Factory;

import design_pattern.FactoryModelUse.Product.QueryInfo;
import design_pattern.FactoryModelUse.Product.User;
import design_pattern.FactoryModelUse.Product.UserInfo;

/**
 * @Description
 * @Author yangshunjie
 * @Date 2021/9/21
 */
public class UserInfoFactory extends UserFactory{
    @Override
    protected UserInfo moreBuilder(QueryInfo info) {
        UserInfo userInfo = new UserInfo();

        userInfo.setAge("18");
        userInfo.setName("测试人员");
        userInfo.setLevel("1");

        return userInfo;
    }

}
